package com.lanchetech.dao;
import java.util.Collection;

import com.lanchetech.entity.ShopCategory;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ShopCategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShopCategory record);

    int insert2(ShopCategory record);

    int insertSelective(ShopCategory record);

    ShopCategory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShopCategory record);

    int updateByPrimaryKey(ShopCategory record);

    int updateBatch(List<ShopCategory> list);

    int batchInsert(@Param("list") List<ShopCategory> list);

    List<ShopCategory> findall();

    List<ShopCategory> findAllByTenantId(@Param("tenantId")Long tenantId);

    int updateDeletedById(@Param("updatedDeleted")Byte updatedDeleted,@Param("id")Long id);

    List<ShopCategory> findAllByIdIn(@Param("idCollection")Collection<Long> idCollection);

    List<ShopCategory> findAllByIdInAndTenantId(@Param("idCollection")Collection<Long> idCollection,@Param("tenantId")Long tenantId);


}